﻿using AuchanScan.ViewModels;
using Microsoft.Phone.Controls;

namespace AuchanScan.Views
{
    public partial class PromoOffresPage : PhoneApplicationPage
    {
        public PromoOffresPage()
        {
            InitializeComponent();
        }

        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            if (NavigationContext.QueryString.ContainsKey("tid"))
            {
                var tid = int.Parse(NavigationContext.QueryString["tid"].ToString());
                var vm = this.DataContext as PromoViewModel;
                if (vm != null)
                {
                 //   vm.LoadTractOffres(tid);
                }
            }
        }
    }
}